<%@page import="tx.bjdacp.model.*" %>
<%@ page contentType="application/msexcel;charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib tagdir="/WEB-INF/tags/simpletable" prefix="simpletable"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="http://www.springframework.org/security/tags" prefix="sec"%>

<%@ taglib uri="http://www.rapid-framework.org.cn/rapid" prefix="rapid" %>
<%
   response.setHeader("Content-disposition","attachment; filename=data.xls");
%>


		<table   border="1" c>
			  <tr>

				<td sortColumn="file_number" ><%=DrugSellUnit.ALIAS_FILE_NUMBER%></td>
				<td sortColumn="zone_id" >所在镇</td>
				<td sortColumn="unit_name" ><%=DrugSellUnit.ALIAS_UNIT_NAME%></td>
				<td  >监督检查</td>
				<td  >GSP跟踪检查</td>
				<td  >GSP认证</td>
			  </tr>

		  	  <c:forEach items="${page.result}" var="item" varStatus="status">

			  <tr class="${status.count % 2 == 0 ? 'odd' : 'even'}">

				<td><c:out value='${item.fileNumber}'/>&nbsp;</td>
				<td><c:out value='${item.zoneName}'/>&nbsp;</td>
				<td><c:out value='${item.unitName}'/>&nbsp;</td>
				<td>&nbsp;
						<c:forEach items="${item.superviseInfos}" var="si" varStatus="status">
							${si.superviseDate} , ${si.superviseType} , ${si.superviseResult} , ${si.dightInfo}, ${si.supervisePerson}</br>
						</c:forEach>
				</td>
				<td>&nbsp;
						<c:forEach items="${item.superviseInfosAuditTrail}" var="si_gsp" varStatus="status">
							${si_gsp.superviseDate} , ${si_gsp.superviseType} , ${si_gsp.superviseResult} , ${si_gsp.dightInfo}, ${si_gsp.supervisePerson}</br>
						</c:forEach>
				</td>
				<td>&nbsp;
						<c:forEach items="${item.gspInfos}" var="gspInfo" varStatus="status">
							${gspInfo.gspGiveDate} , ${gspInfo.gspCode} </br>
						</c:forEach>
				</td>

			  </tr>

		  	  </c:forEach>
		</table>

